﻿/*CodeBuilder v2.0.1 by 2022-05-05 10:32 */
using System;
using ASmile.ORM.Entitys;

namespace ASmile.DBModel
{
	public partial class VSys_RoleUser : EntityBase
	{
		private System.String _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(CNId, 0, true, IsPrimaryKey = true)]
		public System.String Id
		{
			get { return _Id; }
			set
			{
				if (!OnPropertyChanged(CNId, _Id, value)) return;
				_Id = value;
				SetFieldChanged(CNId);
			}
		}

		private System.String _UserId;
		/// <summary>
		/// UserId
		/// </summary>
		[Entity(CNUserId, 1, true)]
		public System.String UserId
		{
			get { return _UserId; }
			set
			{
				if (!OnPropertyChanged(CNUserId, _UserId, value)) return;
				_UserId = value;
				SetFieldChanged(CNUserId);
			}
		}

		private System.String _UserName;
		/// <summary>
		/// UserName
		/// </summary>
		[Entity(CNUserName, 2, true)]
		public System.String UserName
		{
			get { return _UserName; }
			set
			{
				if (!OnPropertyChanged(CNUserName, _UserName, value)) return;
				_UserName = value;
				SetFieldChanged(CNUserName);
			}
		}

		private System.String _LoginName;
		/// <summary>
		/// LoginName
		/// </summary>
		[Entity(CNLoginName, 3, true)]
		public System.String LoginName
		{
			get { return _LoginName; }
			set
			{
				if (!OnPropertyChanged(CNLoginName, _LoginName, value)) return;
				_LoginName = value;
				SetFieldChanged(CNLoginName);
			}
		}

		private System.String _MobileNumber;
		/// <summary>
		/// MobileNumber
		/// </summary>
		[Entity(CNMobileNumber, 4)]
		public System.String MobileNumber
		{
			get { return _MobileNumber; }
			set
			{
				if (!OnPropertyChanged(CNMobileNumber, _MobileNumber, value)) return;
				_MobileNumber = value;
				SetFieldChanged(CNMobileNumber);
			}
		}

		private System.String _RoleId;
		/// <summary>
		/// RoleId
		/// </summary>
		[Entity(CNRoleId, 5, true)]
		public System.String RoleId
		{
			get { return _RoleId; }
			set
			{
				if (!OnPropertyChanged(CNRoleId, _RoleId, value)) return;
				_RoleId = value;
				SetFieldChanged(CNRoleId);
			}
		}

		private System.String _RoleName;
		/// <summary>
		/// RoleName
		/// </summary>
		[Entity(CNRoleName, 6, true)]
		public System.String RoleName
		{
			get { return _RoleName; }
			set
			{
				if (!OnPropertyChanged(CNRoleName, _RoleName, value)) return;
				_RoleName = value;
				SetFieldChanged(CNRoleName);
			}
		}

		private System.DateTime _AddTime;
		/// <summary>
		/// AddTime
		/// </summary>
		[Entity(CNAddTime, 7, true)]
		public System.DateTime AddTime
		{
			get { return _AddTime; }
			set
			{
				if (!OnPropertyChanged(CNAddTime, _AddTime, value)) return;
				_AddTime = value;
				SetFieldChanged(CNAddTime);
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNUserId = "UserId";
		public const string CNUserName = "UserName";
		public const string CNLoginName = "LoginName";
		public const string CNMobileNumber = "MobileNumber";
		public const string CNRoleId = "RoleId";
		public const string CNRoleName = "RoleName";
		public const string CNAddTime = "AddTime";
		#endregion

	}
}